package in.muton.edushare.panels;

import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.WebComponent;
import org.apache.wicket.model.IModel;

public class ImageHolder extends WebComponent {
	private static final long serialVersionUID = 7033099449596204214L;
	
	public ImageHolder(String id, IModel<String> model) {
		super(id, model);
	}

	public ImageHolder(String id) {
		super(id);
	}

	protected void onComponentTag(ComponentTag tag) {
		super.onComponentTag(tag);
        checkComponentTag(tag, "img");
        tag.put("src", getDefaultModelObjectAsString());
	}
}
